﻿namespace Observer
{
    internal class GraphObserver : IObserver
    {
        public void Update(NumberGenerator generator)
        {
            Console.WriteLine("GraphObserver");
            var count = generator.GetNumber();
            for (var i = 0; i < count; i++)
            {
                Console.Write("*");
            }
            Console.WriteLine("");
            Thread.Sleep(100);
        }
    }
}
